package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FHiborExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FHiborExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andOnIsNull() {
            addCriterion("on is null");
            return (Criteria) this;
        }

        public Criteria andOnIsNotNull() {
            addCriterion("on is not null");
            return (Criteria) this;
        }

        public Criteria andOnEqualTo(Float value) {
            addCriterion("on =", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnNotEqualTo(Float value) {
            addCriterion("on <>", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnGreaterThan(Float value) {
            addCriterion("on >", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnGreaterThanOrEqualTo(Float value) {
            addCriterion("on >=", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnLessThan(Float value) {
            addCriterion("on <", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnLessThanOrEqualTo(Float value) {
            addCriterion("on <=", value, "on");
            return (Criteria) this;
        }

        public Criteria andOnIn(List<Float> values) {
            addCriterion("on in", values, "on");
            return (Criteria) this;
        }

        public Criteria andOnNotIn(List<Float> values) {
            addCriterion("on not in", values, "on");
            return (Criteria) this;
        }

        public Criteria andOnBetween(Float value1, Float value2) {
            addCriterion("on between", value1, value2, "on");
            return (Criteria) this;
        }

        public Criteria andOnNotBetween(Float value1, Float value2) {
            addCriterion("on not between", value1, value2, "on");
            return (Criteria) this;
        }

        public Criteria and1wIsNull() {
            addCriterion("1w is null");
            return (Criteria) this;
        }

        public Criteria and1wIsNotNull() {
            addCriterion("1w is not null");
            return (Criteria) this;
        }

        public Criteria and1wEqualTo(Float value) {
            addCriterion("1w =", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wNotEqualTo(Float value) {
            addCriterion("1w <>", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wGreaterThan(Float value) {
            addCriterion("1w >", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wGreaterThanOrEqualTo(Float value) {
            addCriterion("1w >=", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wLessThan(Float value) {
            addCriterion("1w <", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wLessThanOrEqualTo(Float value) {
            addCriterion("1w <=", value, "1w");
            return (Criteria) this;
        }

        public Criteria and1wIn(List<Float> values) {
            addCriterion("1w in", values, "1w");
            return (Criteria) this;
        }

        public Criteria and1wNotIn(List<Float> values) {
            addCriterion("1w not in", values, "1w");
            return (Criteria) this;
        }

        public Criteria and1wBetween(Float value1, Float value2) {
            addCriterion("1w between", value1, value2, "1w");
            return (Criteria) this;
        }

        public Criteria and1wNotBetween(Float value1, Float value2) {
            addCriterion("1w not between", value1, value2, "1w");
            return (Criteria) this;
        }

        public Criteria and2wIsNull() {
            addCriterion("2w is null");
            return (Criteria) this;
        }

        public Criteria and2wIsNotNull() {
            addCriterion("2w is not null");
            return (Criteria) this;
        }

        public Criteria and2wEqualTo(Float value) {
            addCriterion("2w =", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wNotEqualTo(Float value) {
            addCriterion("2w <>", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wGreaterThan(Float value) {
            addCriterion("2w >", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wGreaterThanOrEqualTo(Float value) {
            addCriterion("2w >=", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wLessThan(Float value) {
            addCriterion("2w <", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wLessThanOrEqualTo(Float value) {
            addCriterion("2w <=", value, "2w");
            return (Criteria) this;
        }

        public Criteria and2wIn(List<Float> values) {
            addCriterion("2w in", values, "2w");
            return (Criteria) this;
        }

        public Criteria and2wNotIn(List<Float> values) {
            addCriterion("2w not in", values, "2w");
            return (Criteria) this;
        }

        public Criteria and2wBetween(Float value1, Float value2) {
            addCriterion("2w between", value1, value2, "2w");
            return (Criteria) this;
        }

        public Criteria and2wNotBetween(Float value1, Float value2) {
            addCriterion("2w not between", value1, value2, "2w");
            return (Criteria) this;
        }

        public Criteria and1mIsNull() {
            addCriterion("1m is null");
            return (Criteria) this;
        }

        public Criteria and1mIsNotNull() {
            addCriterion("1m is not null");
            return (Criteria) this;
        }

        public Criteria and1mEqualTo(Float value) {
            addCriterion("1m =", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mNotEqualTo(Float value) {
            addCriterion("1m <>", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mGreaterThan(Float value) {
            addCriterion("1m >", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mGreaterThanOrEqualTo(Float value) {
            addCriterion("1m >=", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mLessThan(Float value) {
            addCriterion("1m <", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mLessThanOrEqualTo(Float value) {
            addCriterion("1m <=", value, "1m");
            return (Criteria) this;
        }

        public Criteria and1mIn(List<Float> values) {
            addCriterion("1m in", values, "1m");
            return (Criteria) this;
        }

        public Criteria and1mNotIn(List<Float> values) {
            addCriterion("1m not in", values, "1m");
            return (Criteria) this;
        }

        public Criteria and1mBetween(Float value1, Float value2) {
            addCriterion("1m between", value1, value2, "1m");
            return (Criteria) this;
        }

        public Criteria and1mNotBetween(Float value1, Float value2) {
            addCriterion("1m not between", value1, value2, "1m");
            return (Criteria) this;
        }

        public Criteria and2mIsNull() {
            addCriterion("2m is null");
            return (Criteria) this;
        }

        public Criteria and2mIsNotNull() {
            addCriterion("2m is not null");
            return (Criteria) this;
        }

        public Criteria and2mEqualTo(Float value) {
            addCriterion("2m =", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mNotEqualTo(Float value) {
            addCriterion("2m <>", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mGreaterThan(Float value) {
            addCriterion("2m >", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mGreaterThanOrEqualTo(Float value) {
            addCriterion("2m >=", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mLessThan(Float value) {
            addCriterion("2m <", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mLessThanOrEqualTo(Float value) {
            addCriterion("2m <=", value, "2m");
            return (Criteria) this;
        }

        public Criteria and2mIn(List<Float> values) {
            addCriterion("2m in", values, "2m");
            return (Criteria) this;
        }

        public Criteria and2mNotIn(List<Float> values) {
            addCriterion("2m not in", values, "2m");
            return (Criteria) this;
        }

        public Criteria and2mBetween(Float value1, Float value2) {
            addCriterion("2m between", value1, value2, "2m");
            return (Criteria) this;
        }

        public Criteria and2mNotBetween(Float value1, Float value2) {
            addCriterion("2m not between", value1, value2, "2m");
            return (Criteria) this;
        }

        public Criteria and3mIsNull() {
            addCriterion("3m is null");
            return (Criteria) this;
        }

        public Criteria and3mIsNotNull() {
            addCriterion("3m is not null");
            return (Criteria) this;
        }

        public Criteria and3mEqualTo(Float value) {
            addCriterion("3m =", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mNotEqualTo(Float value) {
            addCriterion("3m <>", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mGreaterThan(Float value) {
            addCriterion("3m >", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mGreaterThanOrEqualTo(Float value) {
            addCriterion("3m >=", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mLessThan(Float value) {
            addCriterion("3m <", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mLessThanOrEqualTo(Float value) {
            addCriterion("3m <=", value, "3m");
            return (Criteria) this;
        }

        public Criteria and3mIn(List<Float> values) {
            addCriterion("3m in", values, "3m");
            return (Criteria) this;
        }

        public Criteria and3mNotIn(List<Float> values) {
            addCriterion("3m not in", values, "3m");
            return (Criteria) this;
        }

        public Criteria and3mBetween(Float value1, Float value2) {
            addCriterion("3m between", value1, value2, "3m");
            return (Criteria) this;
        }

        public Criteria and3mNotBetween(Float value1, Float value2) {
            addCriterion("3m not between", value1, value2, "3m");
            return (Criteria) this;
        }

        public Criteria and6mIsNull() {
            addCriterion("6m is null");
            return (Criteria) this;
        }

        public Criteria and6mIsNotNull() {
            addCriterion("6m is not null");
            return (Criteria) this;
        }

        public Criteria and6mEqualTo(Float value) {
            addCriterion("6m =", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mNotEqualTo(Float value) {
            addCriterion("6m <>", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mGreaterThan(Float value) {
            addCriterion("6m >", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mGreaterThanOrEqualTo(Float value) {
            addCriterion("6m >=", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mLessThan(Float value) {
            addCriterion("6m <", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mLessThanOrEqualTo(Float value) {
            addCriterion("6m <=", value, "6m");
            return (Criteria) this;
        }

        public Criteria and6mIn(List<Float> values) {
            addCriterion("6m in", values, "6m");
            return (Criteria) this;
        }

        public Criteria and6mNotIn(List<Float> values) {
            addCriterion("6m not in", values, "6m");
            return (Criteria) this;
        }

        public Criteria and6mBetween(Float value1, Float value2) {
            addCriterion("6m between", value1, value2, "6m");
            return (Criteria) this;
        }

        public Criteria and6mNotBetween(Float value1, Float value2) {
            addCriterion("6m not between", value1, value2, "6m");
            return (Criteria) this;
        }

        public Criteria and12mIsNull() {
            addCriterion("12m is null");
            return (Criteria) this;
        }

        public Criteria and12mIsNotNull() {
            addCriterion("12m is not null");
            return (Criteria) this;
        }

        public Criteria and12mEqualTo(Float value) {
            addCriterion("12m =", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mNotEqualTo(Float value) {
            addCriterion("12m <>", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mGreaterThan(Float value) {
            addCriterion("12m >", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mGreaterThanOrEqualTo(Float value) {
            addCriterion("12m >=", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mLessThan(Float value) {
            addCriterion("12m <", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mLessThanOrEqualTo(Float value) {
            addCriterion("12m <=", value, "12m");
            return (Criteria) this;
        }

        public Criteria and12mIn(List<Float> values) {
            addCriterion("12m in", values, "12m");
            return (Criteria) this;
        }

        public Criteria and12mNotIn(List<Float> values) {
            addCriterion("12m not in", values, "12m");
            return (Criteria) this;
        }

        public Criteria and12mBetween(Float value1, Float value2) {
            addCriterion("12m between", value1, value2, "12m");
            return (Criteria) this;
        }

        public Criteria and12mNotBetween(Float value1, Float value2) {
            addCriterion("12m not between", value1, value2, "12m");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}